<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //任务一  李博 2020012314 10.23
    var arr = ["张三",28.7,5,"Join",0.54,"Lily","李四",993];
    var i,num=0;
    var arrNumber = arr.slice();
    var arrString = arr.slice();
    for(i=0;i<arrNumber.length+1;i++){
        if(typeof(arrNumber[num]) == "number"){
            num++;
        }
        else{
            arrNumber.splice(num,1);
            i=0;
            num=0;
        }
    }   
    for(i=0;i<arrString.length+1;i++){
        if(typeof(arrString[num]) == typeof("Lily")){
            num++;
        }
        else{
            arrString.splice(num,1);
            i=0;
            num=0;
        }
    }
    console.log(arrNumber);
    console.log(arrString);
</script>
</html>